#include "bsp.h"

void USR_NVIC_Config(IRQn_Type bIRQN,int bPrePriority,int bSubPriority)
{
    NVIC_InitTypeDef NVIC_InitStructure;
    NVIC_InitStructure.NVIC_IRQChannel = bIRQN;
    NVIC_InitStructure.NVIC_IRQChannelPreemptionPriority = bPrePriority;
    NVIC_InitStructure.NVIC_IRQChannelSubPriority = bSubPriority;
    NVIC_InitStructure.NVIC_IRQChannelCmd = ENABLE;
    NVIC_Init(&NVIC_InitStructure);
}


